package com.example.demo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.service.AdminRoleService;
import com.example.demo.dao.AdminRoleMapper;
import com.example.demo.bean.AdminRole;

@Service
public class AdminRoleServiceImpl implements AdminRoleService {

	@Autowired
	private AdminRoleMapper adminRoleMapper;

	public java.util.List<AdminRole> queryAdminRoleByPage (java.util.Map<String, Object> params){
		return this.adminRoleMapper.selectAdminRoleByPage(params);
	}

	public int queryAdminRoleCount (java.util.Map<String, Object> params){
		return this.adminRoleMapper.selectAdminRoleCount(params);
	}

	public AdminRole queryAdminRoleOne (java.util.Map<String, Object> params){
		return this.adminRoleMapper.selectAdminRoleOne(params);
	}

	public int updateAdminRole (java.util.Map<String, Object> params){
		return this.adminRoleMapper.updateAdminRole(params);
	}

	public int deleteAdminRole (java.util.List<String> idList){
		return this.adminRoleMapper.deleteAdminRole(idList);
	}

	public int insertAdminRole (java.util.Map<String, Object> params){
		return this.adminRoleMapper.insertAdminRole(params);
	}

}